package com.personal.mall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1、开启服务注册发现。
 *    1)配置进nacos注册中心地址
 */


@EnableDiscoveryClient //注册到注册中心
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //排除和Mybatis相关的配置
public class MallGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallGatewayApplication.class, args);
    }

}
